#ifndef _TRANS_H_
#define _TRANS_H_

#include "common/common.h"
#include "json/json-usr.h"

namespace iecas_ns
{
    class CTrans
    {
		public:
			static shared_ptr<CTrans> getInstance();
            CTrans();
			bool init(void);
            void start(void);
            void loop(void);
            bool getTransMesg(string src, vector<Value> &dest);
            bool getTransOrderChg(string src, vector<Value> &dest);
            bool getTransOrderOut(string src, vector<Value> &dest);
		private:
			static shared_ptr<CTrans> sm_intancePtr;
            shared_ptr<CCommon> m_commonPtr;
            shared_ptr<CJsonUsr> m_jsonUsrPtr;
            Value m_trans_mesg;
            Value m_trans_order_chg;
            Value m_trans_order_out;
    };
}

#endif